/**
 * 所有版权归 广西梧州 陈锦韬 所有
 *
 * @Title: PlfUserInfoForm
 * @Package com.rx.com.rx.stock.vo
 * @Description: 用户信息表单
 * @author: 陈锦韬
 * @date: 2020\9\8 0008
 * @version V1.0
 * @Copyright: 2020 陈锦韬  All rights reserved.
 */
package com.rx.uua.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.rx.core.anno.RxRelationField;
import com.rx.core.anno.RxRelationInfo;
import com.rx.core.data.RxData;
import com.rx.core.dbase.RxMarkDbMust;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author: Administrator
 * @Description: 用户角色关联
 * @date: 2020\9\8 0008
 */
@RxData
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class UuaRelUserRole extends RxMarkDbMust  {
    private static final long serialVersionUID = 1L;
    public static final String ASS_ITEM_BID="1";
    public static final String ASS_GROUP_BID="2";

    /**
     * 状态0-正常 1-废弃
     */
    @TableField("STATUS")
    private String status;


    /**
     * 关系类型
     */
    @TableField("RELATION_TYPE")
    private String relationType;
    /**
     * 项bid
     */
    @TableField("ITEM_BID")
    @RxRelationField(value = {
            @RxRelationInfo(tableName = "uua_user_info",fieldName = "bid",JudgeAppend="returnType=1"),
            @RxRelationInfo(tableName = "uua_rel_user_role",fieldName = "bid",JudgeAppend="returnType=3")
    })
    private String itemBid;

    /**
     * 组bid
     */
    @TableField("GROUP_BID")
    @RxRelationField(value = {
            @RxRelationInfo(tableName = "uua_role_info",fieldName = "bid",JudgeAppend="returnType=2")
    })
    private String groupBid;

    /**
     * 机构BID
     */
    @TableField("ORG_BID")
    private String orgBid;
    /**
     * 其他信息
     */
    @TableField("OTHER_INFO")
    private String otherInfo;


    /**
     * 备注
     */
    @TableField("REMARK")
    private String remark;

}
